<template>
    <div class="postItem3">
        <div class="title">
            <h3>{{ articleItem.title }}</h3>
        </div>
        <div class="content"></div>
        <div class="footer">
            <div class="otherDetails">
                <span style="font-size: 16px; display: inline-block; margin-bottom:5px; font-weight:700">
                    <i class="el-icon-place"></i>&nbsp;{{ articleItem.cityName }} 
                </span>
                <br/>
                <span>
                    作者：{{ articleItem.account.nickname }}
                    <img src="http://157.122.54.189:9095/assets/images/avatar.jpg" class="articleIcon">
                    &nbsp;
                </span>
                <span style="vertical-align: bottom;">
                    <i class="iconfont iconxiaolianwawa" style="color:red"></i>
                    {{ articleItem.like ? articleItem.like : 0 }}
                </span>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    props: {
        articleItem: {
            type: Object,
            default: {}
        }
    }
}
</script>

<style scoped lang="less">
    .postItem3{
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        .title{
            flex:  0 0 30%;
            h3{
                width: 100%;
                font-size: 18px;
                color: #5e5a5a;
            }
        }
        .content{
            flex: 0 0 40%;
        }
        .footer{
            flex: 0 0 30%;
            margin-top: 10px;
            .otherDetails{
                color: gray;
                font-size: 13px;
                text-align: right;
                margin-left: 10px;
                .articleIcon{
                    width: 20px;
                    height: 20px;
                    border-radius: 100px;
                    vertical-align: top;
                }
            }
        }
    }
</style>